package bigdata.scala.spark.streaming.ycfx.util

import java.text.SimpleDateFormat
import java.util.Date

/**
  * @author wuzhijiang
  * 获取当前时间
  */
object GetCurrentTimeUtil {
    def getNowDate(): String = {
      val now: Date = new Date()
      val dateFormat: SimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
      val date = dateFormat.format(now)
      return date
    }
}
